var app = new Vue({
    el:"#app",
    data:{
        categoryList: [],
    },
    methods: {
        //查询所有的一级分类
        findAllCategory: function () {
            axios.get("../category/findAll.do").then(function (response) {
                app.categoryList = response.data;
            });
        }

    },
    created(){
        this.findAllCategory();
    }
});